<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/share/taglib.jsp" %>
<%  String path = request.getContextPath(); %>
<html><head>
<title>按专业选择院校</title>
 <script type="text/javascript" src="<%=path%>/script/jquery-1.3.2.min.js"></script>
<link href="<%=path%>/style/imitation.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<%=path%>/images/comm_fns.js"></script>

<script language="javascript">
function chkSubmit()
{
	if (!chkRadio('collegeid'))
	{
		alert('请选择一个专业！');
		return false;
	}

	/*
	oObj = $('sort');
	if (!oObj.value)
	{
		alert('请选择把选中专业作为第几专业！');
		//oObj = $n('sort');
		oObj.focus();
		//oObj[0].focus();
		return false;
	}
	
	oObj  = $('collegeid_m' + getRadioValue('majorid'));
	oObj2 = $('collegename_m' + getRadioValue('majorid'));
	oObj3 = $('majorname_m' + getRadioValue('majorid'));
	if (!(oObj && oObj2 && oObj3))
	{
		return false;
	}
	if (oObj.value && oObj2.value && oObj3.value)
	{
		$('collegeid').value   = oObj.value;
		$('collegename').value = oObj2.value;
		$('majorname').value   = oObj3.value;
	}
	else
	{
		return false;
	}
	
	return true;
	*/
}

function sort_cha()
{
	data = document.getElementById('mjsort').value;
	document.getElementById('sort').value = data;
	//alert(document.getElementById('sort').value);
}

var lastSelId = 0;
function sel_sort(id)
{
	sortHTML = '<select name="mjsort" id="mjsort" onchange="sort_cha();">\
      <option value="1" selected>第一专业</option>\
      <option value="2">第二专业</option>\
      <option value="3">第三专业</option>\
    </select>';
	if (lastSelId)
	{
		$('container_m' + lastSelId).innerHTML = '';
	}
	$('container_m' + id).innerHTML = sortHTML;
	lastSelId = id;
	document.getElementById('sort').value = '1';
}
</script>


 </head>
<body leftmargin="0" bgcolor="#FFFFFF" marginwidth="0">
<center>

	<jsp:include page="/head.jsp"/>
  <table bgcolor="#B1DE9B" border="0" cellpadding="0" cellspacing="0" width="950">
    <tbody><tr>
      <td align="center" height="50"><img src="<%=path%>/images/tbzy.gif" height="19" width="69"></td>
    </tr>
  </tbody></table>
  <table border="0" cellpadding="0" cellspacing="0" width="950">
    <tbody><tr>
      <td rowspan="2" bgcolor="#B1DE9B" width="8"></td>
      <td align="center" bgcolor="#EBF7E6" height="36"><b style="color:#274401;font-size:14px;">填报志愿流程向导</b></td>
      <td rowspan="2" bgcolor="#B1DE9B" width="8"></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#EBF7E6"><table style="margin-bottom: 20px;" border="0" cellpadding="0" cellspacing="0">
          <tbody><tr>
            <td rowspan="3" align="center"><table border="0" cellpadding="0" cellspacing="0">
                <tbody><tr>
                  <td align="center" background="<%=path%>/images/mn_sc2_03.gif" height="72" width="95"><font color="#274402">输入预估分</font></td>
                </tr>
            </tbody></table></td>
            <td rowspan="3" align="center" width="82"><img src="<%=path%>/images/mn_sc1_05.gif" height="39" width="58"></td>
            <td align="center" background="<%=path%>/images/mn_sc1_06.gif" height="33" width="144"><font color="#274402">按预估分选择院校</font></td>
            <td rowspan="3" align="center" width="40"><img src="<%=path%>/images/mn_zy1_01.gif" height="49" width="26"></td>
            <td align="center" background="<%=path%>/images/mn_sc1_06.gif" height="33" width="144"><font color="#274402">按院校选择专业</font></td>
            <td rowspan="3" align="center" width="82"><img src="<%=path%>/images/mn_sc1_07.gif" height="39" width="59"></td>
            <td rowspan="3" align="center"><table border="0" cellpadding="0" cellspacing="0">
                <tbody><tr>
                  <td class="l15" align="center" background="<%=path%>/images/mn_sc2_03.gif" height="72" width="95"><font color="#274402">添加一个志愿<br>
到志愿表</font></td>
                </tr>
            </tbody></table></td>
          </tr>
          <tr>
            <td align="center"></td>
            <td height="10"></td>
          </tr>
          <tr>
            <td align="center" background="<%=path%>/images/mn_sc1_06.gif" height="33" width="144"><font color="#274402">按预估分选择专业</font></td>
            <td align="center" background="<%=path%>/images/mn_sc3_01.gif" height="33" width="144"><b style="color:#034A8C">按专业选择院校</b></td>
          </tr>
      </tbody></table></td>
    </tr>
  </tbody></table>

  
   <s:form action="wishlist_addZyyx" namespace="/front" method="post" id="wishlistform" onsubmit="">
   
  <table bgcolor="#B1DE9B" border="0" cellpadding="0" style="margin-top: 0px;" cellspacing="0" width="950">
  
    <tbody><tr align="center">
      <td colspan="4" height="8">
      <table style="margin-top: 10px;" border="0" cellpadding="0" cellspacing="0" width="934">
            <tbody>
		 <tr>
              <td width="88%" align="center" bgcolor="#EBF8E7"><table style="margin-bottom: 8px; margin-top: 8px;" border="0" cellpadding="0" cellspacing="0" width="680">
                <tbody><tr>
                  <td height="40" width="43"><img src="<%=path%>/images/mn_4.gif" height="25" width="25"></td>
                  <td width="125"><b style="color:#274401">姓名：</b><font color="#328408"><c:out value="${sessionScope.frontuser.realname}" /></font></td>
                  <td width="125"><b style="color:#274401">性别：</b><font color="#328408"><c:out value="${sessionScope.frontuser.xb}" /></font></td>
                  <td width="207"><b style="color:#274401">文/理科：</b><font color="#328408">
	                  <c:if test="${sessionScope.userwish.kl==1}">文科</c:if>
	                  <c:if test="${sessionScope.userwish.kl==5}">理科</c:if>
                  </font></td>
                  <td width="207"><b style="color:#274401">填报模式：</b><font color="#328408">
                  	  <c:if test="${sessionScope.userwish.mode==1}">原始分</c:if>
	                  <c:if test="${sessionScope.userwish.mode==2}">标准分</c:if>
                  </font></td>
                  <td width="207"><b style="color:#274401">预估分数：</b><font color="#328408"><c:out value="${sessionScope.userwish.prescore}" /></font></td>
                </tr>
				
              </tbody></table></td>
            </tr>
	 </tbody></table>
      
      </td>
    </tr>
    <tr>
      <td rowspan="4" width="8"></td>
      <td align="center" bgcolor="#FFFFFF" width="934"><table style="margin-bottom: 10px; margin-top: 20px;" align="right" border="0" cellpadding="0" cellspacing="0" width="87%">
        <tbody><tr>
          <td align="center"><font color="#FF6600">说明：选择院校后，点击进入下一步。
              <input name="action" id="action" value="update" type="hidden">
            <input name="zyid" id="zyid" value="10690337" type="hidden">
			
			
			<input name="collegename" id="collegename" value="" type="hidden">
			<input name="majorname" id="majorname" value="" type="hidden">
			<input name="prescore" id="prescore" value="600" type="hidden">
			
			<input name="mainmajorid" id="mainmajorid" value="41" type="hidden">
			<input name="pgroup" id="pgroup" value="1" type="hidden">			
			<input name="g_name" id="g_name" value="本科一批" type="hidden">			
			<input name="g_id" id="g_id" value="42" type="hidden">
          </font></td>
          <td align="center" width="30%"><!--<a href="select_major_college.php?action=all">显示所有相关专业</a>--> 
          <input name="" src="<%=path%>/images/mn_zy2_02.gif" type="image" onClick="return chkSubmit()"></td></tr>
      </tbody></table></td>
      <td rowspan="4" width="8"></td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FFFFFF">
     
      <table style="margin-bottom: 10px;" border="0" cellpadding="0" cellspacing="0">
        <tbody><tr>
          <td align="center" height="26"><b style="color:#274401;font-size:14px;">重庆 <c:out value='${pcname}'/> <c:out value='${klmc}'/> <c:out value='${zymc}'/> 院校推荐列表
		</b></td>
        </tr>
        <tr>
          <td align="center" height="26"><b style="color:red;font-size:14px;"><c:out value='${warnmessage}'/></b></td>
        </tr>
      </tbody></table>
        </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FFFFFF">
	  
       <table bgcolor="#8AC876" border="0" cellpadding="0" cellspacing="1" width="900">
          <tbody>
          <tr align="center" bgcolor="#C6E7B9">
          	<td colspan="9" height="30"><b style="color:#274401;font-size:14px;">连续三年符合标准的学校列表</b></td>
          </tr>
          <tr align="center" bgcolor="#B1DE9B">
            
            <td rowspan="2" width="140"><b>学校</b></td>
            <td rowspan="2" width="150"><b>专业</b></td>
            <td colspan="3" height="20"><strong>专业历年录取分</strong></td>
            <td colspan="3"><strong>高校历年录取分</strong></td>
            <td rowspan="2" width="120"><strong>选择</strong></td>
          </tr>
          <tr align="center" bgcolor="#B1DE9B">
            <td height="20" width="40"><strong>2009</strong></td>
              <td width="40"><strong>2008</strong></td>
              <td width="40"><strong>2007</strong></td>
              <td width="40"><strong>2009</strong></td>
              <td width="40"><strong>2008</strong></td>
              <td width="40"><strong>2007</strong></td>
            </tr>
		         
            
             <c:forEach items="${yxzyList3}" var="entry">
		          <tr align="center" bgcolor="#FFFFFF">
	          
            <td align="center" bgcolor="#FFFFFF"><font color="#274402"><a href="http://exam.edu.sina.com.cn/collegedb/collegeindex.php?collegeid=<c:out value='${entry.yx.yxdh}'/>" target="_blank" class="a06"><c:out value='${entry.yx.yxmc}'/></a></font></td>
            <td style="padding-left: 5px;" align="center" bgcolor="#EBF7E6"><font color="#274402"><a href="http://exam.edu.sina.com.cn/collegedb/collegemajor_detail.php?collegeid=10002&amp;majorid=<c:out value='${entry.zy.zydh}'/>" target="_blank" class="a06"><c:out value='${entry.zy.zymc}'/></a></font></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf3}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf2}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf1}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf3}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf2}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf1}'/></td>
            <td align="center" bgcolor="#FFFFFF" height="30">
                <input name="collegeid" value="<c:out value='${entry.yx.yxdh}'/>" onclick="sel_sort(this.value);" type="radio">
			    <span id="container_m<c:out value='${entry.yx.yxdh}'/>"></span>
                <input name="majorid_m<c:out value='${entry.yx.yxdh}'/>" id="majorid_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.zy.zydh}'/>" type="hidden">
			    <input name="collegename_m<c:out value='${entry.yx.yxdh}'/>" id="collegename_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.yx.yxmc}'/>" type="hidden">
			    <input name="majorname_m<c:out value='${entry.yx.yxdh}'/>" id="majorname_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.zy.zymc}'/>" type="hidden">
              </td>
            </tr>
            </c:forEach>
	          </tbody>
	    </table>
	    
	     <table bgcolor="#8AC876" border="0" cellpadding="0" cellspacing="1" width="900">
          <tbody>
          <tr align="center" bgcolor="#C6E7B9">
          	<td colspan="9" height="30"><b style="color:#274401;font-size:14px;">连续两年符合标准的学校列表</b></td>
          </tr>
          <tr align="center" bgcolor="#B1DE9B">
            
            <td rowspan="2" width="140"><b>学校</b></td>
            <td rowspan="2" width="150"><b>专业</b></td>
            <td colspan="3" height="20"><strong>专业历年录取分</strong></td>
            <td colspan="3"><strong>高校历年录取分</strong></td>
            <td rowspan="2" width="120"><strong>选择</strong></td>
          </tr>
          <tr align="center" bgcolor="#B1DE9B">
            <td height="20" width="40"><strong>2009</strong></td>
              <td width="40"><strong>2008</strong></td>
              <td width="40"><strong>2007</strong></td>
              <td width="40"><strong>2009</strong></td>
              <td width="40"><strong>2008</strong></td>
              <td width="40"><strong>2007</strong></td>
            </tr>
		         
            
             <c:forEach items="${yxzyList2}" var="entry">
		          <tr align="center" bgcolor="#FFFFFF">
	          
            <td align="center" bgcolor="#FFFFFF"><font color="#274402"><a href="http://exam.edu.sina.com.cn/collegedb/collegeindex.php?collegeid=<c:out value='${entry.yx.yxdh}'/>" target="_blank" class="a06"><c:out value='${entry.yx.yxmc}'/></a></font></td>
            <td style="padding-left: 5px;" align="center" bgcolor="#EBF7E6"><font color="#274402"><a href="http://exam.edu.sina.com.cn/collegedb/collegemajor_detail.php?collegeid=10002&amp;majorid=<c:out value='${entry.zy.zydh}'/>" target="_blank" class="a06"><c:out value='${entry.zy.zymc}'/></a></font></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf3}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf2}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf1}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf3}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf2}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf1}'/></td>
            <td align="center" bgcolor="#FFFFFF" height="30">
                <input name="collegeid" value="<c:out value='${entry.yx.yxdh}'/>" onclick="sel_sort(this.value);" type="radio">
			    <span id="container_m<c:out value='${entry.yx.yxdh}'/>"></span>
                <input name="majorid_m<c:out value='${entry.yx.yxdh}'/>" id="majorid_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.zy.zydh}'/>" type="hidden">
			    <input name="collegename_m<c:out value='${entry.yx.yxdh}'/>" id="collegename_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.yx.yxmc}'/>" type="hidden">
			    <input name="majorname_m<c:out value='${entry.yx.yxdh}'/>" id="majorname_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.zy.zymc}'/>" type="hidden">
              </td>
            </tr>
            </c:forEach>
	          </tbody>
	    </table>
	    
	     <table bgcolor="#8AC876" border="0" cellpadding="0" cellspacing="1" width="900">
          <tbody>
          <tr align="center" bgcolor="#C6E7B9">
          	<td colspan="9" height="30"><b style="color:#274401;font-size:14px;">一年符合标准的学校列表</b></td>
          </tr>
          <tr align="center" bgcolor="#B1DE9B">
            
            <td rowspan="2" width="140"><b>学校</b></td>
            <td rowspan="2" width="150"><b>专业</b></td>
            <td colspan="3" height="20"><strong>专业历年录取分</strong></td>
            <td colspan="3"><strong>高校历年录取分</strong></td>
            <td rowspan="2" width="120"><strong>选择</strong></td>
          </tr>
          <tr align="center" bgcolor="#B1DE9B">
            <td height="20" width="40"><strong>2009</strong></td>
              <td width="40"><strong>2008</strong></td>
              <td width="40"><strong>2007</strong></td>
              <td width="40"><strong>2009</strong></td>
              <td width="40"><strong>2008</strong></td>
              <td width="40"><strong>2007</strong></td>
            </tr>
		         
            
             <c:forEach items="${yxzyList1}" var="entry">
		          <tr align="center" bgcolor="#FFFFFF">
	          
            <td align="center" bgcolor="#FFFFFF"><font color="#274402"><a href="http://exam.edu.sina.com.cn/collegedb/collegeindex.php?collegeid=<c:out value='${entry.yx.yxdh}'/>" target="_blank" class="a06"><c:out value='${entry.yx.yxmc}'/></a></font></td>
            <td style="padding-left: 5px;" align="center" bgcolor="#EBF7E6"><font color="#274402"><a href="http://exam.edu.sina.com.cn/collegedb/collegemajor_detail.php?collegeid=10002&amp;majorid=<c:out value='${entry.zy.zydh}'/>" target="_blank" class="a06"><c:out value='${entry.zy.zymc}'/></a></font></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf3}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf2}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.zy.lqf1}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf3}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf2}'/></td>
            <td bgcolor="#FFFFFF"><c:out value='${entry.yx.lqf1}'/></td>
            <td align="center" bgcolor="#FFFFFF" height="30">
                <input name="collegeid" value="<c:out value='${entry.yx.yxdh}'/>" onclick="sel_sort(this.value);" type="radio">
			    <span id="container_m<c:out value='${entry.yx.yxdh}'/>"></span>
                <input name="majorid_m<c:out value='${entry.yx.yxdh}'/>" id="majorid_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.zy.zydh}'/>" type="hidden">
			    <input name="collegename_m<c:out value='${entry.yx.yxdh}'/>" id="collegename_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.yx.yxmc}'/>" type="hidden">
			    <input name="majorname_m<c:out value='${entry.yx.yxdh}'/>" id="majorname_m<c:out value='${entry.yx.yxdh}'/>" value="<c:out value='${entry.zy.zymc}'/>" type="hidden">
              </td>
            </tr>
            </c:forEach>
	          </tbody>
	    </table>		
		
      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FFFFFF"><table style="margin-bottom: 20px; margin-top: 20px;" align="right" border="0" cellpadding="0" cellspacing="0" width="87%">
        <tbody><tr>
          <td align="center"><font color="#FF6600">说明：选择院校后，点击进入下一步。</font></td>
          <td align="center" width="30%"><!--<a href="select_major_college.php?action=all">显示所有相关专业</a>-->
            <input name="" src="<%=path%>/images/mn_zy2_02.gif" type="image" onClick="return chkSubmit()"></td></tr>
		
      </tbody></table></td>
    </tr>
	
  </tbody></table>
    </s:form>
  <table border="0" cellpadding="0" cellspacing="0" width="950">
    <tbody><tr align="center" bgcolor="#B1DE9B">
      <td height="90" width="950"><a href="<%=path%>/front/wishlist_back.action"><img src="<%=path%>/images/mn_zy5_01.gif" border="0" height="19" width="63"></a></td>
    </tr>
  </tbody></table>
 <jsp:include page="/foot.jsp"/>
</center>
</body></html>